#ifndef MUTASCENE_H
#define MUTASCENE_H

#include <QtGui>
#include <QtOpenGL/QtOpenGL>
#include <QGraphicsScene>
#include <QColor>
#include <QRubberBand>
#include <QGraphicsItem>
#include <MutaObject.h>

class MutaScene : public QGraphicsScene
{
    Q_OBJECT
public:
    explicit MutaScene(QObject *parent = 0);
    ~MutaScene();
    QReadWriteLock* getItemLock();
    void deleteItem(QGraphicsItem* item);
    void addItem(QGraphicsItem *item);
private:
    QReadWriteLock itemLock;
    QTime timer;
    QColor backgroundColor;
    QPointF origin;
    void initGL();

signals:
    void deletingItem(QString objectID);
public slots:

};

#endif // MUTASCENE_H
